﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Runtime.Remoting.Contexts;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Linq;

namespace WebShopEndPoint
{
    public class WebShopEndPointFacade
    {
        private static WebShopEndPointFacade INSTANCE;
        private static object LOCK = new object();

        public static WebShopEndPointFacade Instance
        {
            get
            {
                lock (LOCK)
                {
                    if (INSTANCE == null)
                        INSTANCE = new WebShopEndPointFacade();
                }

                return INSTANCE;
            }
        }

        private WebShopEndPointFacade()
        {
            
        }

        [MethodImpl(MethodImplOptions.Synchronized)]
        public void SendOrder(XDocument document)
        {
            //todo: Implement SendOrder
        }
    }
}
